/**
 * Created with IntelliJ IDEA.
 * User: "Balasubramanian"
 * Date: 8/14/13
 * Time: 1:58 PM
 * To change this template use File | Settings | File Templates.
 */

package com.twu.biblioteca;

public class Movie {

    private String movieName,director;
    private int yearOfRelease,rating;

    //constructor
    Movie(String movieName,int yearOfRelease,String director,int rating)
    {
        this.movieName=movieName;
        this.yearOfRelease=yearOfRelease;
        this.director=director;
        this.rating=rating;
    }

    //setter methods

    public void setMovieName(String name)
    {
        movieName=name;
    }
    public void setYearOfRelease(int year)
    {
        yearOfRelease=year;
    }
    public void setDirector(String director)
    {
        this.director=director;
    }
    public void setRating(int rating)
    {
        this.rating=rating;
    }

    //getter methods

    public String getMovieName()
    {
        return movieName;
    }
    public int getYearOfRelease()
    {
        return yearOfRelease;
    }
    public String getDirector()
    {
        return director;
    }
    public int getRating()
    {
        return rating;
    }
}
